package com.ynsj.service.impl;

import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ynsj.domain.SysUserLog;
import com.ynsj.mapper.SysUserLogMapper;
import com.ynsj.service.SysUserLogService;
@Service
public class SysUserLogServiceImpl extends ServiceImpl<SysUserLogMapper, SysUserLog> implements SysUserLogService{

    @Override
    public Page<SysUserLog> findSysUserLogPage(Page<SysUserLog> privilegePage) {
        privilegePage.addOrder(OrderItem.desc("created"));
        return page(privilegePage);
    }
}
